package com.sangmo.boot.framework.data.entity.general;

import com.sangmo.boot.framework.data.filter.meta.Filtered;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.MappedSuperclass;
import java.util.Date;

@MappedSuperclass
public class LongEntity2 extends LongEntity {

    @Filtered
    @CreatedDate
    protected Date createdTime;
    @Filtered
    @CreatedBy
    protected Long createdBy;

    public LongEntity2() {
    }

    public Date getCreatedTime() {
        return this.createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }
}
